package com.pengxun.common.config.constant;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "login.error")
public class LoginConfig {
    
	/**
	 * 错误次数
	 */
	private Integer count = DEFAULT_COUNT;
	
	/**
	 * 超时时间
	 */
	private Integer time = DEFAULT_TIME;
	
	private static final Integer DEFAULT_COUNT=5;
	
	private static final Integer DEFAULT_TIME=2;

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Integer getTime() {
		return time;
	}

	public void setTime(Integer time) {
		this.time = time;
	}
	
	
}
